package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.query.StrategyQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyDetailService {
    StrategyDetail get(Long id);

    PageInfo<StrategyDetail> query(StrategyQuery qo);

    void saveOrUpdate(StrategyDetail strategyDetail, String tags);

    List<StrategyDetail> selectByCatalogId(Long id);

    List<StrategyDetail> selectViewNumTop3(Long destId);

    List<StrategyDetail> selectByDestIdTop3(Long id);

    List<StrategyDetail> listAll();

    void updateStats(StrategyDetail detail);

    List<StrategyDetail> list();

    void saveUserRelation(Long favorId, Long userId);

    boolean isUserRelation(Long favorId, Long userId);

    List<StrategyDetail> getByUserId(Long userId);

    boolean deleteCollection(Long id);
}
